<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>hello</title>
</head>
<body>
  <script>
    // 特点： 不会立即调用，改变this的指向然后复制函数返回
    function fn(a, b) {
      console.log(a + b + '================' + this.age);
    }
    var obj = {
      name: 2,
      age: 3,
    }
    var fn = fn.bind(obj,3,2);
    fn();
  </script>
</body>
</html>
